<%@page import="com.tecnick.htmlutils.htmlentities.HTMLEntities"%>
<%@page import="controller.Controller"%>
<%@page import="com.google.apphosting.utils.servlet.SessionCleanupServlet"%>
<%@page import="sessionMenegment.SessionMgr"%>
<%@ page import="java.util.*,dataBase.*"%>
<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="java.util.logging.Logger"%>


<html>
<head>
</head>
<body>
	<%-- <%
		
		SessionMgr sessionMgr = SessionMgr.getInst();
		if(sessionMgr.checkUser(request,session))
			out.println("barak");
	%> --%>
	
	<%-- <%
		if(session.getAttribute("barak")==null)
			out.print("null");
		else
			out.println("barak");
		session.setAttribute("barak","123");
		session.setAttribute("barak2","123");
		session.setMaxInactiveInterval(100);
		out.println(session.getId());
	%> --%>
	<%
		Logger log = Logger.getLogger("cookies.jsp");

		String s = request.getParameter("temp");
		String brows = request.getParameter("brows");
		String t = s;
		if(brows==null || brows.equals("") ){
			log.warning("temp1 "+s+" "+t);
			out.println("temp1 "+s+" "+t);
		}
		else if(brows.equals("ie")){
			log.warning("temp2 "+HTMLEntities.htmlentities(s)+" "+t);
			out.println("temp2 "+HTMLEntities.htmlentities(s)+" "+t);
		}
		
	%>
    <form id="myform2"  method="get" action="cookies2.jsp" accept-charset="ISO-8859-1">
    <input type="text" name="temp"/>
    
    <!--[if IE]>
    <input type="hidden" name="brows" value="ie"/>
    <![endif]-->
    <input type="submit" value="send"/> 
    </form>
</body>
</html>